package com.library.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 图书购物车
 * </p>
 *
 * @author ccl
 * @since 2024-10-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="RBookCar对象", description="图书购物车")
public class RBookCar extends Model<RBookCar> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户编码")
    private String userCode;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "联系人")
    private String linkMan;

    @ApiModelProperty(value = "联系电话")
    private String linkPhone;

    @ApiModelProperty(value = "省市区编码")
    private String addressCode;

    @ApiModelProperty(value = "省市区名称")
    private String addressName;

    @ApiModelProperty(value = "详细地址")
    private String addressDetail;

    @ApiModelProperty(value = "书编码")
    private String bookCode;

    @ApiModelProperty(value = "书名称")
    private String bookName;

    @ApiModelProperty(value = "定价")
    private BigDecimal price;

    @ApiModelProperty(value = "出版单位编码")
    private String publishCompanyCode;

    @ApiModelProperty(value = "出版单位名称")
    private String publishCompanyName;

    @ApiModelProperty(value = "出版时间")
    private Date publishTime;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "类别")
    private String category;

    @ApiModelProperty(value = "url")
    private String url;

    @ApiModelProperty(value = "操作人id")
    private String updateId;

    @ApiModelProperty(value = "创建人id")
    private String createId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "id集合")
    private List<Long> ids;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
